package edu.fiap.model.service;

import java.util.List;

import edu.fiap.model.entity.Forum;
import edu.fiap.model.persistence.dao.DAOFactory;
import edu.fiap.model.persistence.dao.ForumDAO;

public class ForumService {
	
	private static DAOFactory daoFactory = DAOFactory.getDAOFactory();
	private static ForumDAO forumDAO = daoFactory.getForumDAO();
	
	public static Forum procurarForum(Forum forum){
		return forumDAO.find(forum);
	}
	
	public static List<Forum> listarTodosForuns(){
		return forumDAO.list(new Forum());
	}

}
